.TH std::operator<<(std::stacktrace_entry) 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::operator<<(std::stacktrace_entry) \- std::operator<<(std::stacktrace_entry)

.SH Synopsis
   Defined in header <stacktrace>
   std::ostream& operator<<( std::ostream& os, const                      (since C++23)
   std::stacktrace_entry& f );

   Inserts the description of f into the output stream os. Equivalent to return os <<
   std::to_string(f);.

.SH Parameters

   os - an output stream
   f  - a stacktrace_entry whose description is to be inserted

.SH Return value

   os

.SH Exceptions

   May throw implementation-defined exceptions.

.SH Example


// Run this code

 #include <iostream>
 #include <stacktrace>

 int main()
 {
     for (const auto& f : std::stacktrace::current())
         std::cout << f << '\\n';
 }

.SH Possible output:

 0x0000000000402AA7 in ./prog.exe
 __libc_start_main in /lib/x86_64-linux-gnu/libc.so.6
 0x00000000004029B9 in ./prog.exe

.SH See also

   operator<< performs stream output of basic_stracktrace
   (C++23)    \fI(function template)\fP
